package com.hr;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

import com.espirit.EntityMapping;
import com.espirit.eap.annotation.DomainModel;
import com.googlecode.cswish.model.Saas;

@Entity
@DomainModel
public class BankCollectionItem extends EntityMapping implements Serializable, Saas{
	private static final long serialVersionUID = 6447488287340107764L;
	
	
	private Integer sid;
	public Integer getSid() {
		return sid;
	}

	public void setSid(Integer sid) {
		this.sid = sid;
	}

	@ManyToOne(fetch=FetchType.LAZY)
	public Salary getSalary() {
		return salary;
	}
	public void setSalary(Salary salary) {
		this.salary = salary;
	}

	public String getBankNbr() {
		return bankNbr;
	}
	public void setBankNbr(String bankNbr) {
		this.bankNbr = bankNbr;
	}

	@ManyToOne(fetch=FetchType.LAZY)
	public BankCollection getParent() {
		return parent;
	}
	public void setParent(BankCollection parent) {
		this.parent = parent;
	}

	private Salary salary;
	private String bankNbr;
	private BankCollection parent;
}
